$().ready(function() {
	// 精彩视频
	$(".form-superb").validate({
		rules: {
			name: {
				required:true,
				maxlength:24
			},
			introduce: {
				required:true,
				maxlength:300
			},
			videoUrl: {
				required: true,
				url: true
			}
		},
		messages: {
			name: {
				required:"请输入视频名称",
				maxlength:"最多输入24个文字"
			},
			introduce: {
				required:"请输入视频简介",
				maxlength:"最多输入300个文字"
			},
			videoUrl: {
				required: "请输入视频地址",
				url: "请输入正确的视频地址"
			}
		}
	});
	// 美妈秀
	$(".form-mom").validate({
		rules: {
			imageName: {
				required:true,
				maxlength:24
			},
			introduce: {
				required:true,
				maxlength:300
			},
			imageTitle: {
				required: true,
				maxlength:24
			}
		},
		messages: {
			imageName: {
				required:"请输入图片名称",
				maxlength:"最多输入24个文字"
			},
			introduce: {
				required:"请输入图片简介",
				maxlength:"最多输入300个文字"
			},
			imageTitle: {
				required: "请输入标题",
				maxlength:"最多输入24个文字"
			}
		}
	});
	// 文本编辑器
	$(".form-ueditor").validate({
		rules: {
			title: {
				required:true,
				maxlength:24
			}
		},
		messages: {
			title: {
				required:"请输入标题",
				maxlength:"最多输入24个文字"
			}
		}
	});
	// 饮食服务,出行旅游,医院,美国体验游
	$(".form-eat,.form-travel,.form-hospital,.form-usa").validate({
		rules: {
			title: {
				required:true,
				maxlength:24
			},
			introduce: {
				required:true,
				maxlength:300
			}			
		},
		messages: {
			title: {
				required:"请输入标题",
				maxlength:"最多输入24个文字"
			},
			introduce: {
				required:"请输入简介",
				maxlength:"最多输入300个文字"
			}
		}
	});

});